import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-07-23
 * Time: 14:30
 */
public class Test {
    public static void main1(String[] args) {
        String str1 = "welcome to bit";
        String str2 = "come";

        ArrayList<Character> list = new ArrayList<>();
        for (int i = 0; i < str1.length(); i++) {
            char ch = str1.charAt(i);
            if(!str2.contains(ch+"")){
                list.add(ch);
            }
        }

        System.out.println(list);
    }


    public static List<List<Integer>> generate(int numRows) {
        List<List<Integer>> ret = new ArrayList<>();
        List<Integer> list0 = new ArrayList<>();

        //第一行
        list0.add(1);
        ret.add(list0);

        //第二行开始
        for (int i = 1; i < numRows ; i++) {
            List<Integer> curRow = new ArrayList<>();
            curRow.add(1);

            for (int j = 1; j < i ; j++) {
                List<Integer> preRow = ret.get(i-1);
                int num1 = preRow.get(j);
                int num2 = preRow.get(j-1);
                int num = num1+num2;

                curRow.add(num);
            }
            curRow.add(1);
            ret.add(curRow);
        }

        return ret;
    }

    public static void main(String[] args) {

    }
}
